import unittest
from air_conditioner import AirConditioner


class MyAirConditioner(unittest.TestCase):
    def test_get_set_method(self):
        air_condition = AirConditioner()
        air = AirConditioner('haier', 10002)
        air_condition.set_brand('海尔')
        air_condition.set_price(1000)
        self.assertEqual(air_condition.get_price(), 1000)
        self.assertEqual(air_condition.get_brand(), '海尔')

        print(air_condition.get_brand())
        print(air_condition.get_price())
        air_condition.start()
        air_condition.stop(10)
